<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets">
	<html xmlns:p="http://primefaces.org/ui"
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:ui="http://java.sun.com/jsf/facelets">



<h:head>
<script type="text/javascript">
PrimeFaces.locales['pt_BR'] = {
                closeText: 'Fechar',
                prevText: 'Anterior',
                nextText: 'Próximo',
                currentText: 'Começo',
                monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],
                monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun', 'Jul','Ago','Set','Out','Nov','Dez'],
                dayNames: ['Domingo','Segunda','Terça','Quarta','Quinta','Sexta','Sábado'],
                dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],
                dayNamesMin: ['D','S','T','Q','Q','S','S'],
                weekHeader: 'Semana',
                firstDay: 1,
                isRTL: false,
                showMonthAfterYear: false,
                yearSuffix: '',
                timeOnlyTitle: 'Só Horas',
                timeText: 'Tempo',
                hourText: 'Hora',
                minuteText: 'Minuto',
                secondText: 'Segundo',
                currentText: 'Data Atual',
                ampm: false,
                month: 'Mês',
                week: 'Semana',
                day: 'Dia',
                allDayText : 'Todo Dia'
            };

</script>
</h:head>
<h:body>

	<h:form>
		<h:panelGrid columns="2">
			<h:outputText value="Nome :           " />
			<h:inputText value="#{contatoBean.contato.nome}" />

			<h:outputText value="Telefone :       " />
			<h:inputText value="#{contatoBean.contato.telefone}" />

			<h:outputText value="Data Nacimento : " />
			<p:calendar locale="pt_BR" showButtonPanel="true" navigator="true"
				id="ptCal" value="#{contatoBean.contato.dataNascimento}" />

			<h:commandButton actionListener="#{contatoBean.gravar()}"
				value="Gravar" type="submit" />


		</h:panelGrid>



	</h:form>
</h:body>

	</html>
</ui:composition>